package com.ttx.nacos.config.demo.controller;

import com.ttx.nacos.config.demo.config.RefreshConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TimFruit
 * @date 20-7-26 下午4:33
 */
@RestController
@RequestMapping("/config")
public class ConfigController {
    @Autowired
    RefreshConfig config;

    @GetMapping("/get")
    public String getConfig(){
        return config.toString();
    }


}
